/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plp1;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author eltorre
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
		if (args.length > 0)
		{
			ALexico aL = new ALexico(args[0]);
			ASintactico aS = new ASintactico(aL);
			String s;
			MyToken EOF = new MyToken(MyToken.EOF);
			MyToken t;
			int i = 0;
			try {
			/*	t = aL.nextToken();
				while (t != null && !t.equals(EOF))
				{
				System.out.println(t);
				i++;
				t = aL.nextToken();
				}*/

			s = aS.Lanzar();

			System.out.println(s);


			} catch (Excepcion ex) {
				System.err.println(ex.toString());
			}
		}
		else
		{
			System.err.println("Introduce el fichero como argumento");
		}
    }

}
